package com.igeek.javase.ch04.employee;

/*
 *@author wangpeng
 *2023/7/13 10:43
 *@description TODO
 */
public class Director extends Employee {
    private double transportationAllowance;   //交通补助

    //有参构造
    public Director(String name, String address, double basicSalary, double transportationAllowance) {
        super(name, address, basicSalary);
        this.transportationAllowance = transportationAllowance;
    }

    public double getTransportationAllowance() {
        return transportationAllowance;
    }

    public void settransportationallowance(double transportationAllowance) {
        this.transportationAllowance = transportationAllowance;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("Transportation Allowance: " + transportationAllowance);
    }
}

